<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
  <meta charset="UTF-8">
  <title>JavaScript 运算符</title>
</head>
<body>
<h2>赋值，相加运算符</h2>
<p>x=7,y=8,计算z=x+y,然后显示 z:</p>

<p id="demo"></p>
<script>
  var x=7;
  var y=7;
  var z=x+y;
  document.getElementById("demo").innerHTML=z;
</script>

</body>
</html>